﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TExaminationInfo.aspx.cs" Inherits="com.orange.examination.WebForm5" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" href="css/TExaminationInfo.css" />
    <title>试题基本信息</title>
   
</head>
<body>
    <form id="form1" runat="server">
         <fieldset class="FieldSet">

             <legend class="Legend">试题基本信息</legend>

             <div class="middle">

        <span>试题题目：</span>

        <asp:TextBox ID="txtstkey" runat="server"></asp:TextBox>

        <asp:Button ID="btnserch" runat="server" Text="查询" OnClick="btnserch_Click" />
                 </div>

             <div class="bottom">
        <asp:GridView ID="gvExaminationInfo" runat="server" AutoGenerateColumns="False" CellPadding="3" Width="586px" OnRowDeleting="gvExaminationInfo_RowDeleting" AllowPaging="True" OnPageIndexChanging="gvExaminationInfo_PageIndexChanging" PageSize="10">
            
            <Columns>
                    <asp:BoundField DataField="testContent" HeaderText="题目" />

                    <asp:TemplateField HeaderText="发布">
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                        <ItemTemplate><%#Getstatus(Convert.ToString(Eval("pub"))) %></ItemTemplate>
                    </asp:TemplateField>

                    <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="TExaminationDetail.aspx?Eid={0}" HeaderText="查看/修改" Text="详细信息">
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                    </asp:HyperLinkField>

                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemTemplate><asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" Text="删除" OnClientClick="return confirm('确认要删除吗？');"></asp:LinkButton></ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="50px" />
                    </asp:TemplateField>
            </Columns>
             <RowStyle ForeColor="#000066" Height="15px" HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
            <HeaderStyle BackColor="Transparent" Font-Bold="False" ForeColor="Black" Height="15px" />
            <FooterStyle BackColor="White" ForeColor="#000066" />
            
        </asp:GridView>
                 </div>
              </fieldset>
    </form>
</body>
</html>
